package com.unc.allergyex.objects;

import com.unc.allergyex.objects.db.Allergen;

/**
 * Objects that stores name of an allergen and whether or not the user is allergic to it.
 * An ArrayList of these objects is stored in {@link Application} by {@link ObjManager}.
 * This ArrayList is used in {@link Preferences} and {@link AllergyEX} (when data is loaded into application state).
 * 
 * @author Ryan Miller
 *
 */

public class AllergyPreference {

	Allergen theAllergen;
	boolean allergic;
	
	public AllergyPreference(Allergen newAllergen){
		theAllergen = newAllergen;
		allergic = false;
	}
	public AllergyPreference(Allergen newAllergen, boolean newAllergic){
		theAllergen = newAllergen;
		allergic = newAllergic;
	}
	
	public Allergen getAllergen(){
		return theAllergen;
	}
	
	public void setAllergic(boolean newAllergic){
		allergic = newAllergic;
	}
	
	public boolean getAllergic(){
		return allergic;
	}
}
